a8695ad7d5584d7fa5e8ab533b9de74ad5a32f79,java/java-impl/src/com/intellij/codeInspection/javaDoc/JavaDocLocalInspection.java,JavaDocLocalInspection,createMissingThrowsTagDescriptor,#PsiMethod#InspectionManager#PsiClassType#boolean#,787

Before Change


    String message = InspectionsBundle.message("inspection.javadoc.problem.missing.tag", "<code>@" + tag + "</code> " + exceptionClassType.getCanonicalText());
    final String firstDeclaredException = exceptionClassType.getCanonicalText();
    final PsiIdentifier nameIdentifier = method.getNameIdentifier();
    return nameIdentifier != null ? createDescriptor(nameIdentifier, message,new AddMissingTagFix(tag, firstDeclaredException), manager,
                                                     isOnTheFly) : null;
  }

  private static ProblemDescriptor createMissingTagDescriptor(PsiElement elementToHighlight,

After Change


    @NonNls String tag = "throws";
    String message = InspectionsBundle.message("inspection.javadoc.problem.missing.tag", "<code>@" + tag + "</code> " + exceptionClassType.getCanonicalText());
    final String firstDeclaredException = exceptionClassType.getCanonicalText();
    return createDescriptor(elementToHighlight, message, new AddMissingTagFix(tag, firstDeclaredException), manager, isOnTheFly);
  }

  private static ProblemDescriptor createMissingTagDescriptor(PsiElement elementToHighlight,